package jsyf.oa.entity.wreport;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @description: 条件查询用户列表
 * @author: @张巨波 @zhangjubo
 * @creat: on 2017/11/23.
 * @since: V1.0.0
 * @see jsyf.oa.web
 */
@Entity
@Table(name = "T_WRT_UNFINISH", schema = "oa", catalog = "")
public class WReportUnfinishEntity extends BaseEntity  implements Serializable {
    private String jinzhan;
    private String overTime;
    private String jobState;
    private String mainId;
    private String wId;
    private  String userId;
    private Date createTime;
    private  String trackContent;
    /*
    * 1:当前未处理的前三个疑难故障
2：需要支持的事项
3：为关闭事项
*/
    private  String type;
    public String getJinzhan() {
        return jinzhan;
    }

    public void setJinzhan(String jinzhan) {
        this.jinzhan = jinzhan;
    }

    public String getOverTime() {
        return overTime;
    }

    public void setOverTime(String overTime) {
        this.overTime = overTime;
    }

    public String getJobState() {
        return jobState;
    }

    public void setJobState(String jobState) {
        this.jobState = jobState;
    }

    public String getwId() {
        return wId;
    }

    public void setwId(String wId) {
        this.wId = wId;
    }

    public String getMainId() {
        return mainId;
    }

    public void setMainId(String mainId) {
        this.mainId = mainId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTrackContent() {
        return trackContent;
    }

    public void setTrackContent(String trackContent) {
        this.trackContent = trackContent;
    }

    /*
   * 1:当前未处理的前三个疑难故障
2：需要支持的事项
3：为关闭事项
*/
    public String getType() {
        return type;
    }

    /*
   * 1:当前未处理的前三个疑难故障
2：需要支持的事项
3：为关闭事项
*/
    public void setType(String type) {
        this.type = type;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String getTableName() {
        return "T_WRT_UNFINISH";
    }
    @Override
    public String getViewName() {
        return "V_WRT_UNFINISH";
    }
    @Override
    public JSONObject getJSONColumns() {
        JSONObject json = new JSONObject();
        json.put("ID","id");
        json.put("W_ID","wId");
        json.put("CREATE_TIME","createTime");
        json.put("MAIN_ID","mainId");
        json.put("USER_ID","userId");
        json.put("OVER_TIME","overTime");
        json.put("JOB_STATE","jobState");
        json.put("JINZHAN","jinzhan");
        json.put("TRACK_CONTENT","trackContent");
        json.put("TYPE","type");
        return json;
    }
    public JSONObject getJSONObject(){
        JSONObject obj = new JSONObject();

        obj.put("id",getId());
        obj.put("jinzhan",getJinzhan());
        obj.put("over_time",getOverTime());
        obj.put("job_state",getJobState());
        obj.put("w_id",getwId());
        obj.put("main_id",getMainId());
        obj.put("track_content",getTrackContent());
        obj.put("type",getType());
        obj.put("create_time",getCreateTime());
        obj.put("user_id",getUserId());
        return  obj;
    }
}
